﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace day5._2
{
    internal class Program
    {
        static void Main(string[] args)
        {
            int x, y;
            int[,] a = new int[6, 6];
            for (x = 0; x <= 5; x++)
            {
                for (y = 0; y <= x; y++)
                {
                    if (x == y || y == 0)
                    {
                        a[x, y] = 1;
                    }
                    else
                    {
                        a[x, y] = a[x - 1, y - 1] + a[x - 1, y];
                        Console.Write(a[x, y] + " ");
                    }
                    Console.WriteLine();
                }
                Console.ReadLine();
            }
        }
    }
}
